package org.lq.shopping.entity;

import java.io.Serializable;
/**
 * 会员管理
 * @author 张龙飞
 * @时间	2018年9月26日
 */
public class ShopVIPLevel implements Serializable{

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1936613005227742720L;
	private int vip_id;//会员ID 主键
	private String vip_levelname;//会员等级名称
	private int vip_discount;//会员折扣
	private int vip_min_integral;//会员积分最小限额
	private int vip_max_integral;//会员积分最大限额
	private int vip_deposit;//存款
	public int getVip_id() {
		return vip_id;
	}
	public void setVip_id(int vip_id) {
		this.vip_id = vip_id;
	}
	public String getVip_levelname() {
		return vip_levelname;
	}
	public void setVip_levelname(String vip_levelname) {
		this.vip_levelname = vip_levelname;
	}
	public int getVip_discount() {
		return vip_discount;
	}
	public void setVip_discount(int vip_discount) {
		this.vip_discount = vip_discount;
	}
	public int getVip_min_integral() {
		return vip_min_integral;
	}
	public void setVip_min_integral(int vip_min_integral) {
		this.vip_min_integral = vip_min_integral;
	}
	public int getVip_max_integral() {
		return vip_max_integral;
	}
	public void setVip_max_integral(int vip_max_integral) {
		this.vip_max_integral = vip_max_integral;
	}
	public int getVip_deposit() {
		return vip_deposit;
	}
	public void setVip_deposit(int vip_deposit) {
		this.vip_deposit = vip_deposit;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public String toString() {
		return "ShopVIPLevel [vip_id=" + vip_id + ", vip_levelname=" + vip_levelname + ", vip_discount=" + vip_discount
				+ ", vip_min_integral=" + vip_min_integral + ", vip_max_integral=" + vip_max_integral + ", vip_deposit="
				+ vip_deposit + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + vip_deposit;
		result = prime * result + vip_discount;
		result = prime * result + vip_id;
		result = prime * result + ((vip_levelname == null) ? 0 : vip_levelname.hashCode());
		result = prime * result + vip_max_integral;
		result = prime * result + vip_min_integral;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ShopVIPLevel other = (ShopVIPLevel) obj;
		if (vip_deposit != other.vip_deposit)
			return false;
		if (vip_discount != other.vip_discount)
			return false;
		if (vip_id != other.vip_id)
			return false;
		if (vip_levelname == null) {
			if (other.vip_levelname != null)
				return false;
		} else if (!vip_levelname.equals(other.vip_levelname))
			return false;
		if (vip_max_integral != other.vip_max_integral)
			return false;
		if (vip_min_integral != other.vip_min_integral)
			return false;
		return true;
	}
	
	
	
}
